<template>
  <div class="payment-page">
    <div class="field-section">
      <div class="title">收款地址</div>
      <div class="value">
        {{ this.walletAddress }}
      </div>
    </div>

    <div class="field-section">
      <div class="title">金额</div>
      <div class="value">0.1 USDT</div>
    </div>

    <div class="btn-wrapper">
      <van-button type="primary" @click="next" block>立即支付</van-button>
    </div>
  </div>
</template>

<script>
export default {
  mounted() {
    this.connectMetaMask();
  },
  methods: {
    next() {
      this.$router.push("/confirm");
    }
  }
};
</script>

<style lang="less" scoped>
.payment-page {
  padding: 16px 12px;
  .field-section {
    margin-bottom: 16px;
    .title {
      margin-bottom: 10px;
      color: #333;
      padding-left: 2px;
    }

    .value {
      padding: 15px 12px;
      border-radius: 4px;
      background: white;
      word-break: break-all;
      line-height: 20px;
      font-size: 13px;
    }
  }

  .btn-wrapper {
    margin-top: 24px;
  }
}
</style>
